/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 0
 * Date: 2023-03-21
 * Time: 11:57
 */

class WashMachine{
    public String brand; // 品牌
    public String type; // 型号
    public double weight; // 重量
    public double length; // 长
    public double width; // 宽
    public double height;// 高
    public String color;// 颜色
    public void washClothes(){// 洗衣服
        System.out.println("洗衣功能");
    }

    public void dryClothes(){ // 脱水
        System.out.println("脱水功能");
    }

    public void setTime(){ // 定时
        System.out.println("定时功能");
    }
}

class Date {
    public int year;
    public int month;
    public int day;
    public void setDay(int y, int m, int d){
        year = y;
        month = m;
        day = d;
    }
    public void printDate(){
        System.out.println(year + "/" + month + "/" + day);
    }
    public static void main(String[] args) {
// 构造三个日期类型的对象 d1 d2 d3
        Date d1 = new Date();
        Date d2 = new Date();
        Date d3 = new Date();
// 对d1，d2，d3的日期设置
        d1.setDay(2020,9,15);
        d2.setDay(2020,9,16);

        d3.setDay(2020,9,17);
// 打印日期中的内容
        d1.printDate();
        d2.printDate();
        d3.printDate();
    }
}

public class Test {
    public static void main(String[] args) {

    }

    public static void main1(String[] args) {
        WashMachine washMachine1 = new WashMachine();
        washMachine1.dryClothes();
        washMachine1.setTime();
        washMachine1.washClothes();

    }
}
